/**************************************************************************
 *
 *        Copyright (c) 2008-2008 by Sunplus mMedia Inc., Ltd.
 *
 *  This software is copyrighted by and is the property of Sunplus
 *  mMedia Inc., Ltd. All rights are reserved by Sunplus mMedia
 *  Inc., Ltd. This software may only be used in accordance with the
 *  corresponding license agreement. Any unauthorized use, duplication,
 *  distribution, or disclosure of this software is expressly forbidden.
 *
 *  This Copyright notice MUST not be removed or modified without prior
 *  written consent of Sunplus mMedia Inc., Ltd.
 *
 *  Sunplus mMedia Inc., Ltd. reserves the right to modify this
 *  software without notice.
 *
 *  Sunplus mMedia Inc., Ltd.
 *  19-1, Innovation First Road, Science-Based Industrial Park,
 *  Hsin-Chu, Taiwan, R.O.C.
 *
 *  Author: Matt Wang
 *  1000, 20081013 Matt Wang
 *    a. integrate new front driver architecture.
 *  1001, 20081014 Matt Wang
 *    a. remove mode mapping in MI_MI5100_RAW.
 *    b. wait vsync in MI_MI5100_RAW and OV_OV5620_RAW.
 *    c. add new driver OV_OV3630_RAW.
 *  1002, 20081016 Matt Wang
 *    a. add new driver OV_OV5610_RAW.
 *    b. add optical black and shutter related api in all drivers.
 *  1003, 20081017 Matt Wang
 *    a. add frontOpFrameRateSet() in all drivers.
 *  1004, 20081022 Matt Wang
 *    a. add lens compensation and ev10 fields in capability.
 *    b. use UINT16 instead of UINT8 for gain table.
 *    c. call halCdspBayerPatternSet() instead of directly write register.
 *    d. remove unused api in hal_front_common.c.
 *    e. add new driver GC_GC0316_RAW, GC_GC1303_RAW, PA_PAS6371LT_RAW and SO_SOI768_RAW.
 *  1005, 20081023 Matt Wang
 *    a. update ae, gain and command table in GC_GC0316_RAW.
 *  1006, 20081024 wenguo
 *    a. [mantis 32544] change burst flow
 *  1007, 20081028 Matt Wang
 *    a. porting frontColorNoiseReduce() from old sensor driver in OV_OV3630_RAW
 *       and SO_SOI768_RAW.
 *  1008, 20081029 cs
 *    a. porting front_gc_gc1303_raw.c, hal_front_gc1303.c
 *  1009, 20081029 Matt Wang
 *    a. fix AE_60FPS_30_MIN_IDX and AE_60FPS_25_MIN_IDX in OV_OV5620_RAW.
 *  1010, 20081029 Matt Wang
 *    a. add EXP_GAIN_SET_POS and GAIN_AFTER_EXP in all drivers.
 *    b. remove unused HalFrontAeSet().
 *  1011, 20081104 Matt Wang
 *    a. config clk in frontOpPowerOn() before i2c operating in all drivers.
 *  1012, 20081106 wenguo
 *    a. do not set 0x21d0, 0x21d3 when sensor trigger
 *  1013, 20081110 cs
 *    a. update OV5620 frame mode sensor driver
 *  1014, 20081111  liumr
 *    a. update GC1303  sensor power gpio control
 *  1015, 20081111 Matt Wang
 *    a. fix rorate 180 degree in GC_GC0316_RAW.
 *    b. add frontBeforePowerOn(), frontAfterPowerOn(), frontBeforePowerOff()
 *       and frontAfterPowerOff() in all drivers.
 *  1016, 20081113 Matt Wang
 *    a. add member mclkPhase in frontPrevCapabDesc_t and frontSnapCapabDesc_t
 *       in all drivers.
 *    b. add frontBeforePowerOn() demo code in GC_GC1303_RAW.
 *  1017, 20081113 Matt Wang
 *    a. wait vsync rising before send command in frontOpSnapModeSet() in GC_GC1303_RAW.
 *  1018, 20081114 CS
 *    a. change i2c chip address for mi1320
 *    b. move clock setting before sent I2C data
 *  1019, 20081117 Matt Wang
 *    a. [0033894] fix SO_SOI768_RAW bottom yellow noise line.
 *  1020, 20081118 Matt Wang
 *    a. add new driver OV_OV7710_RAW.
 *  1021, 20081121 Matt Wang
 *    a. upgrade OV_OV5610_RAW.
 *  1022, 20081124 wenguo
 *    a. update front_ov_ov7710_yuv.c for YUV snap.
 *  1023, 20081124 cs
 *    a. update front_ov_ov7710_yuv.c for YUV workaround.
 *    b. add front_ov_ov9655_yuv.c
 *  1024, 20081127 Matt Wang
 *    a. add frontOpAeTargetLumaSet(), frontOpAeExposureCompensationSet(),
 *       frontOpAeFrameRateSet() and frontOpAwbModeSet() in OV_OV7710_RAW.
 *    b. fix yuv sequence in OV_OV7710_RAW.
 *  1025, 20081127 Matt Wang
 *    a. add frontOpAeTargetLumaSet(), frontOpAeExposureCompensationSet(),
 *       frontOpAeFrameRateSet() and frontOpAwbModeSet() in OV_OV9655_RAW.
 *  1026, 20081201 cs
 *    a. update OV9655 yuv sensor driver
 *    b. update OV7710 yuv sensor driver
 *  1027, 20081202 cs
 *    a. add awb debug mode for OV9655
 *    b. add AE compensation function
 *  1028, 20081208 Matt Wang
 *    a. add frontSensorOpAeXxx() and frontSensorOpAwbXxx() define in
 *       OV_OV7710_RAW and OV_OV9655_RAW.
 *  1029, 20081202 cs
 *    a. Merge OV5610 sensor driver with FDK and TDC-5080
 *  1030, 20081209 Matt Wang
 *    a. [0034493] add frontAllRegDump() in MI_MI5100_RAW for debugging purpose.
 *  1031, 20081209 Matt Wang
 *    a. [0034493] add MCLK_DRV_30FPS_PREV and MCLK_DRV_SNAP for mclk driving
 *       to fix pink display when snap => preview.
 *  1032, 20081211 wenguo
 *    a. fix ov5610.c HAL_SetWBGainSet() prototype
 *  1033, 20081211 wenguo
 *    a. [mantis 34469] fix ov5610 burst hang up issue
 *  1034, 20081211 cs
 *    a. add new mechanical shutter early table and mechanical shutter calibration function
 *  1035, 20081211 cs
 *    a. modify the calibration flow to turn gamma, LSC and set WB unity gain
 *  1036, 20081215 liumr
 *    a. modify the pas6371 exposure time setting
 *  1037, 20081216 Matt Wang
 *    a. [0034607] fix different fps in frontOpExposureTimeSet() in PA_PAS6371LT_RAW.
 *    b. [0034607] add frontAllRegDump() in PA_PAS6371LT_RAW for debugging purpose.
 *  1038, 20081217 Matt Wang
 *    a. [0034607] add the difference between frontInit30fpsBank1CmdTbl[] and
 *       frontInit60fpsBank1CmdTbl[] into front30fpsPrevCmdTbl[] and front60fpsPrevCmdTbl[]
 *       to fix sensor frame rate switching fail in PA_PAS6371LT_RAW.
 *  1039, 20081217 Huiling
 *    a. [0034649] Remove change color matrix in ov3630_raw.c.
 *  1040, 20081219 Matt Wang
 *    a. [0033882] modify XOFF_30FPS_PREV and XOFF_SNAP to fix left side noise
 *       in GC_GC0316_RAW.
 *  1041, 20081229 Matt Wang
 *    a. add new driver OV_OV3640_YUV.
 *  1042, 20081229 wenguo
 *    a. change snap size ov3640 to 2016 * 1512.
 *  1043, 20081231 Allen
 *    a. Help Kaijun to update OV9665 driver.
 *  1044, 20090109 wenguo
 *    a. [mantis 35071] add frontOpAfterSnapShot() in MI5100
 *  1045, 20090203 Matt Wang
 *    a. add 20fps preview mode in OV_OV5620_RAW.
 *  1046, 20090321 Phil Lin
 *    a. modify i2c write function in gain/exposure set
 *  1047, 20090423 TQ
 *    a. add global gain mode 2
 *
 **************************************************************************/
#include "general.h"

/**************************************************************************
 *                         G L O B A L    D A T A
 **************************************************************************/
static UINT8 code verStr[] = "frdrv_1047";

/**************************************************************************
 *
 *  Function Name: frontDrvLibVerGet
 *
 *  Purposes: Get current libaray's version.
 *
 *  Descriptions:
 *
 *  Arguments:
 *
 *  Returns:
 *
 *  See also:
 *
 **************************************************************************/
UINT8 *
frontDrvLibVerGet(
	void
)
{
	return (verStr + 6);
}

